import request from '@/utils/myrequest'

export function getList(kvs) {
  return request({
    url: '/ams/AlarmLevel/GetPageList',
    method: 'get',
    kvs
  })
}

export function getAllLevel(kvs) {
  return request({
    url: '/ams/alarmlevel/GetAllLevel',
    method: 'get',
    kvs
  })
}

export function doAdd(kvs) {
  return request({
    url: '/ams/AlarmLevel/Add',
    method: 'POST',
    kvs
  })
}

export function doUpdate(kvs) {
  return request({
    url: '/ams/AlarmLevel/Update',
    method: 'POST',
    kvs
  })
}

export function doDelete(kvs) {
  return request({
    url: '/ams/AlarmLevel/Delete',
    method: 'POST',
    kvs
  })
}

export function getInfos(kvs) {
  return request({
    url: '/ams/AlarmLevel/Get',
    method: 'get',
    kvs
  })
}
